package com.lanou3g;

public class Family {

	private Man father;
	private Woman mother;
	private Child son;
	
	public Man getFather() {
		return father;
	}
	public void setFather(Man father) {
		this.father = father;
	}
	public Woman getMother() {
		return mother;
	}
	public void setMother(Woman mother) {
		this.mother = mother;
	}
	public Child getSon() {
		return son;
	}
	public void setSon(Child son) {
		this.son = son;
	}
	
	public void travel(){
		System.out.println(father.getName()
				+"带着他的妻子"+mother.getName()+
				"和他的儿子"+son.getName()+"一起去旅游");
	}
	
}
